home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinNT Registry Quota.xpl < prev    next >
Text File  |  2002-02-20  |  2KB  |  42 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="2"
  3. "COUNT"="1"
  4. "TEXT 1"="Quota (MB)"
  5. "UIPATH"="System\Advanced System Settings"
  6. "NAME"="Windows Registry Quota"
  7. "VERSION"="1.05"
  8. "OSVERSION"="010100"
  9. "LANGUAGE"="VBScript"
  10. "DESCRIPTION 1"="By default, Windows uses 25% of the paged pool (=swapfile, virtual memory) as the maximum size for the registry."
  11. "DESCRIPTION 2"="Normally this works well, but there are situations where this is simply not enough. In this case, simply enter the new value here. Windows will always only use until 80% of the paged pool size."
  12. "DESCRIPTION 3"="For example, if you have configured 100 MB as virtual memory, Windows will not use more than 80 MB for the registry."
  13. "DESCRIPTION 4"="Please note that changing this value does not allocate any additonal memory until its actually needed. Means, if you configure 30 MB but your Registry is only 10 MB in size, Windows will only allocate 10 MB of memory."
  14. "DESCRIPTION 5"="To have the default 25% handling back, just clear the field."
  15. "COMMENT 1"="For more information MS KB Q94993"
  16. "COMMENT 2"="Fixed error "Bytes treated as Mbytes" by Sergey Parunov (psn@mail.primorye.ru)"
  17. "AUTHOR"="Xteq Systems"
  18. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  19. "CONTACTURL"="http://www.xteq.com"
  20.  
  21. sV1="HKLM\System\CurrentControlSet\Control\RegistrySizeLimit"
  22. Sub Plugin_Initialize 
  23.   i=RegReadValue(sV1)
  24.   if not IsEmpty(i) then
  25.     Call SetUIElement(1,i/1048576)
  26.   end if
  27. End Sub
  28.  
  29. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  30.  i=GetUIElement(1)
  31.  if len(i)>0 then
  32.    Call RegWriteValue(sV1,i*1048576,2)
  33.  else
  34.    if RegValueExists(sV1) then
  35.      Call RegDeleteValue(sV1)
  36.    end if
  37.  end if
  38.  Call Restart()
  39. End Sub
  40.  
  41. Sub Plugin_Terminate 
  42. End Sub